<link rel="stylesheet" type="text/css" href="|£|$url|\£|/wp-content/plugins/video-wizard/libs/Smarty/templates/css/searchbox_widget.css"/>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/js/searchbox_widget.js"></script>
<script type="text/javascript" src="|£|$url|\£|/wp-content/plugins/video-wizard/libs/jquery/jquery-1.6.2.min.js"></script>
<div  id="vidwiz-searchbox-wid">
            |£|foreach key=key from=$data_wid item=item|\£|
                <div class="|£|if $key%2==0|\£|vidwiz-item-container_pari |£|else|\£| vidwiz-item-container_dispari|£|/if|\£|" >
                    <a href="|£|$url|\£|?p=|£|$item.post_id|\£|"><div class="vidwiz-thumbs-td floatl" id="vidwiz-thumb-td|£|$key|\£|">
                        <img width="90px" class="vidwiz-thumb-td-img" id="vidwiz-thumb-img|£|$key|\£|"  src="|£|$item.thumb|replace:".png":"_thumb.png"|\£|"/>    
                        <script>
                            $(document).ready(function(){
                            var img =  $("#vidwiz-thumb-img|£|$key|\£|");
                            $("<img/>") 
                                .attr("src", $(img).attr("src"))
                                .load(function() {
                                        var width = this.width;
                                        var height = this.height;
                                        var newWidth = parseInt($("#vidwiz-thumb-img|£|$key|\£|").attr("width").replace("px",""));
                                        var newHeight = parseInt((newWidth*height)/width);
                                        var contHeight = $("#vidwiz-thumb-td|£|$key|\£|").css("height").replace("px","");
                                        var margin = parseInt((contHeight-newHeight)/2);
                                        margin = ""+margin+"px";
                                        $("#vidwiz-thumb-img|£|$key|\£|").css("margin-top",margin);
                                        $("#vidwiz-thumb-img|£|$key|\£|").css("margin-bottom",margin);
                            });});
                        </script>
                    </div></a>
                    <div class="vidwiz-item-infos floatl" >
                        <a href="|£|$url|\£|?p=|£|$item.post_id|\£|"><div class="vidwiz-thumb-title">|£|$item.title|\£|</div></a>
                        <div class="vidwiz-thumb-metatags">|£|$item.metatags|\£|</div>
                    </div>
                 <div class="clr"></div>   
                </div>
                    
            |£|/foreach|\£|
</div>
